#include "ThreadPool.hpp"
#include <iostream>
#include "Task.hpp"
#include <string>
#include <ctime>
#include<cstdlib>
#if 0
int main()
{
    //ThreadPool<Task> *tp = new ThreadPool<Task>;
    //tp->InitThreadPool();
    ThreadPool<Task>::GetInstance()->InitThreadPool();
  
    srand((long long)time(NULL));
    std::string s = "+-*/%";
    while (true)
    {

        int x = rand() % 20 + 1;
        int y = rand() % 10 + 1;
        char op = s[rand() % 5];
        Task t(x, y, op);
        ThreadPool<Task>::GetInstance()->PushTask(t);
        //tp->PushTask(t);
        sleep(1);
    }

    return 0;
}
#endif